import Vue from 'vue'
import Router from 'vue-router'
import home from '../view/home'
import learn from '../view/learn'
import life from '../view/life'
import photo from '../view/photo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home,
    },
		{
			path: '/home',
			name: 'home',
			component: home,
			children:[
				{
					path: 'learn',
					name: 'learn',
					component: learn,
				},
				{
					path: 'life',
					name: 'life',
					component: life,
				},
			]
		},
    {
    	path: '/photo',
    	name: 'photo',
    	component: photo,
    },
  ]
})
